package com.waitingresult.system.controller;

import com.waitingresult.common.base.model.Result;
import com.waitingresult.system.service.DeptService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

import static com.waitingresult.common.constant.ApiUrlConstant.SYSTEM_API;

/**
 * All right reserved,Designed By WangShuai
 * <p>
 *
 * @author : WangShuai
 * @version : V1.0
 * @ClassName : DeptController
 * @Description :
 * @date : 2021/9/29 17:17
 */
@RestController
@RequestMapping(SYSTEM_API + "dept")
public class DeptController {
    @Resource
    private DeptService deptService;

    @PostMapping("index")
    public Result<Object> index() {
        return Result.success("ok", deptService.list());
    }

    @PostMapping("select")
    public Result<Object> select() {
        return Result.success("ok");
    }

    @PostMapping("get")
    public Result<Object> get() {
        return Result.success("ok");
    }

    @PostMapping("add")
    public Result<Object> add() {
        return Result.success("ok");
    }

    @PostMapping("edit")
    public Result<Object> edit() {
        return Result.success("ok");
    }

    @PostMapping("delete")
    public Result<Object> delete() {
        return Result.success("ok");
    }

}
